<template>
	<view class="content">
		<view class="introduce">
用户评论
		</view>
		<view class="dabox">
			<view class="box"  v-if="dataArr.length!=0" v-for="(item,index) in dataArr" :key="index">
				<view class="shang">
					<view class="touxiang" >
					<image src="../../../static/image-che/迪丽热巴3.jpeg" mode="" class="tp"></image>
				</view>
				<view class="neirong">
					<view class="name wzstyle">{{item.vipName}}</view>
						<view class="time wzstyle">{{item.gc_time}}</view>
							<view class="conTent wzstyle">{{item.gc_text}}</view>
							
						
				</view>
				</view>
				<view class="imgs">
								<view class="Chtml" v-html="item.gc_img"></view>
								<!-- 	<view class="img">
								<image :src="v.img" mode="" class="tp1"></image>
							</view> -->
						<!-- 	<view class="img">
								<image :src="v.img" mode="" class="tp1"></image>
							</view>
							<view class="img">
								<image :src="v.img" mode="" class="tp1"></image>
							</view> -->
							</view>
				
				
				
			</view>
				<view v-else class="C_no">暂无评论~</view>
		</view>
	</view>
</template>

<script>
	import {
	
		reactive
	} from 'vue';
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import myRequest from '../../../utils/myRequest.js';
	export default {
	setup(){
		let data = reactive({
			goodsId: "",
			dataArr: [],
			CommodityInformation: function(i) {
				myRequest({
					url:"/CgetData",
					method: 'POST',
					data: {
						id: i
					},
				}).then((res)=>{
					if (res.data.code == 200) {
							
						data.dataArr = res.data.data
							
							
					}
				})
				
				
				
			},
		})
		onLoad((option)=>{
			data.goodsId=option.id;
			data.CommodityInformation(option.id)
		})
		return data;
		
	}
	}
</script>

<style  lang="scss">
	.C_no{
		margin-top:10rpx;
		padding-bottom: 150rpx;
	}
	.Chtml .comment_img {
		width: 203rpx;
		height: 203rpx;
	}
	.imgs{
		display: flex;
		padding: 10rpx 0 0 80rpx
	}
	.img{
		margin-right: 15rpx;
	}
	.conTent{
		margin-bottom: 25rpx;
	}
	.wzstyle{
		font-size: 30rpx;
	}
	.time{
		margin-bottom: 20rpx;
		color: #B9B9B9;
	}
	.tp1{
		width: 200rpx;
		height: 200rpx;
	}
	.touxiang .tp{
		width: 100%;
		height: 100%;
	}
	.dabox{
		padding-left: 25rpx;
	}
	.shang{
		display: flex;
	}
	.box{
		
		margin-bottom: 15rpx;
	}
	.touxiang{
		overflow: hidden;
		width: 70rpx;
		height: 70rpx;
		border-radius: 50%;
		margin-right: 20rpx;
	}
	.content {
		margin-bottom: 50px;
	}
	.introduce {
		font-weight: bold;
		height: 100rpx;
		line-height: 100rpx;
		padding-left: 25rpx;
	}
</style>
